<template>
  <div>
    <!-- <order-header :title="title">
      <template v-slot:tips>
        <span>
          温馨提示：{{tips}}
        </span>
      </template>
    </order-header> -->
    <router-view></router-view>
    <order-footer></order-footer>
    <service-bar></service-bar>
    <nav-footer></nav-footer>
  </div>
</template>

<script>
  // import OrderHeader from '@/components/OrderHeader'
  import OrderFooter from '@/components/OrderFooter'
  import NavFooter from '@/components/NavFooter'
  import ServiceBar from '@/components/ServiceBar'
  export default {
    name: 'order',
    components: {
      // OrderHeader,
      OrderFooter,
      NavFooter,
      ServiceBar
    },
    data() {
      return {
        tips: '',
        title: '',
      }
    },
    mounted() {
    //   let path = this.$route.path
    //   if (path === '/order/confirm') {
    //     this.title = '订单确认'
    //     this.tips = '请认真填写收货地址'
    //   } else if (path === '/order/list') {
    //     this.title = '订单列表'
    //     this.tips = '请谨防钓鱼链接或诈骗电话，了解更多>'
    //   } else if (path.indexOf('/order/pay') === 0) {
    //     this.title = '订单支付'
    //     this.tips = '请谨防钓鱼链接或诈骗电话，了解更多>'
    //   } else if (path.indexOf('/order/alipay') === 0) {
    //     this.title = '订单支付-支付宝'
    //     this.tips = '请谨防钓鱼链接或诈骗电话，了解更多>'
    //   }
    },
  }
</script>

<style lang='scss' scoped>

</style>
